import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget{

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TextWidget',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('TextWidget'),
        ),
        body: Center(
          child: Container(
            child: Text(
              'Hello world',
              style: TextStyle(
                fontSize: 40.0,
                color: Colors.red
              ),
            ),
            alignment: Alignment.topLeft,
            width: 400.0,
            height: 700.0,
            // color: Colors.lightBlue,
            padding: const EdgeInsets.fromLTRB(0, 20, 20, 0),
            margin: const EdgeInsets.all(20),
            decoration:  const BoxDecoration(
                gradient:  LinearGradient(
                    colors: [
                      Colors.lightBlue,
                      Colors.green,
                      Colors.purple
                    ]
                ),
            ),
          ),
        ),
      ),
    );
  }
}